package cn.yh.hospitalappointmentsystemdemo.service.impl;

import cn.yh.hospitalappointmentsystemdemo.domain.vo.DepartmentVo;
import cn.yh.hospitalappointmentsystemdemo.mapper.DepartmentsMapper;
import cn.yh.hospitalappointmentsystemdemo.service.IDepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentsServiceImpl implements IDepartmentsService {
    @Autowired
    private DepartmentsMapper departmentsMapper;


    @Override
    public List<DepartmentVo> departmentList() {
        return departmentsMapper.departmentList();
    }
}
